package com.tyk.bookstore.back.product.model.constant;


/**
 * @author tyk
 * @description 书籍参数校验规则
 */
public class BookValidateConstant {

    /**
     * 书籍编号
     */
    public static final int BOOK_NO_MIN_LENGTH = 1;
    public static final int BOOK_NO_MAX_LENGTH = 2048;
    public static final String BOOK_NO_REGEXP = ".*";

    /**
     * 书名
     */
    public static final int NAME_MIN_LENGTH = 1;
    public static final int NAME_MAX_LENGTH = 2048;
    public static final String NAME_REGEXP = ".*";

    /**
     * 封面路径
     */
    public static final int COVER_MIN_LENGTH = 1;
    public static final int COVER_MAX_LENGTH = 2048;
    public static final String COVER_REGEXP = ".*";

    /**
     * 标题
     */
    public static final int TITLE_MIN_LENGTH = 1;
    public static final int TITLE_MAX_LENGTH = 2048;
    public static final String TITLE_REGEXP = ".*";

    /**
     * 书籍简介
     */
    public static final int SUMMARY_MIN_LENGTH = 1;
    public static final int SUMMARY_MAX_LENGTH = 2048;
    public static final String SUMMARY_REGEXP = "(.|\\s)+";

    /**
     * ISBN
     */
    public static final int ISBN_MIN_LENGTH = 1;
    public static final int ISBN_MAX_LENGTH = 2048;
    public static final String ISBN_REGEXP = ".*";

}
